<!--
 * @Author: zhoulei0232
 * @Date: 2021-09-28 14:44:04
 * @LastEditTime: 2021-09-29 10:06:53
 * @LastEditors: zhoulei0232
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h1  id="name">{{name}}</h1>
</body>
<script src="js/observer.js"></script>
<script src="js/watcher.js"></script>
<script src="js/complie.js"></script>
<script src="js/index.js"></script>
<script>
   var ele = document.querySelector("#name");
   var selfVue = new SelfVue({
     name:'hello word'
   },ele,'name')
   window.setTimeout(function(){
     selfVue.data.name = "canfoo";
   },2000)
</script>
</html>
 